package com.ssm.service;

import com.ssm.dao.NoticeMapper;
import com.ssm.pojo.Notice;

import java.util.List;

public class NoticeServiceImpl implements NoticeService{
    private NoticeMapper noticeMapper;

    public void setNoticeMapper(NoticeMapper noticeMapper) {
        this.noticeMapper = noticeMapper;
    }

    @Override
    public int addNotice(Notice notice) {
        return noticeMapper.addNotice(notice);
    }

    @Override
    public List queryNotice(String date) {
        return noticeMapper.queryNotice(date);
    }

    @Override
    public int deleteNotice(String date) {
        return noticeMapper.deleteNotice(date);
    }
}
